Skip to content

Put the mobile menu on the sky and brand the back-to-top button - #23

Closed
salevine wants to merge 1 commit into
mainfrom
docs/mobile-drawer-sky
Closed

salevine wants to merge 1 commit into
mainfrom
docs/mobile-drawer-sky

Conversation

@salevine

Copy link
Copy Markdown
Contributor

Summary

The mobile menu was the last part of the help center still on an off-white background. This puts it on kite.ai's sky, like the rest of the site, and brands the back-to-top button.

  • The mobile drawer uses the page's sky. The docs menu sits on the same navy glass panel as the desktop sidebar.
  • "Back to main menu" is a glass bar, lined up with the menu items, with a hover state.
  • The main menu shows "Try Kite" as the same white button as the navbar.
  • The back-to-top button is Kite blue with a solid white arrow, a light edge so it shows on the sky, and a visible focus ring.
  • Cleanup: removed the old light-drawer active tint and the unused dark code theme. One shared white caret variable.

Notes for reviewers

  • The glass goes on the docs list (.theme-doc-sidebar-menu, a public Docusaurus class), not on the drawer panels. The panels slide sideways by their own width when the docs menu opens, so they must keep it.
  • The back-to-top arrow is drawn through a CSS mask. Infima's default caret is 50% transparent, so the button uses our solid caret instead.

Validation

  • npm run build passes.
  • Contrast was checked with a script that models the sky, including its cloud glows. White text on the drawer glass is at least 5.06:1 everywhere a drawer can reach. The active item is at least 7:1. The back-to-top arrow is 4.9:1.
  • Checked in Chrome at 390px:
    • The drawer fills the full height.
    • The docs menu and main menu both work, including the Back step.
    • The back-to-top arrow is solid white.
  • No test suite exists for this site.

🤖 Generated with Claude Code

The mobile menu was the last part still on an off-white background.

- The mobile drawer uses the page's sky. The docs menu sits on the same
  navy glass panel as the desktop sidebar, so white text stays at 4.9:1
  or better. "Back to main menu" is a glass bar whose label lines up
  with the menu items, and it has a hover state.
- The glass goes on the docs list (.theme-doc-sidebar-menu), not on the
  drawer panels. The panels slide sideways by their own width, so they
  must keep it.
- The main-menu panel shows "Try Kite" as the same white button as the
  navbar.
- The back-to-top button is Kite blue with a solid white arrow, a light
  edge so it shows on the sky, and a visible focus ring. The arrow uses
  our solid caret as its mask, because Infima's is 50% transparent.

Cleanup:

- Remove the old blue-tint active style, which only the light drawer
  used.
- Share the white caret icon through one variable.
- Remove the unused prism darkTheme, since the site is light only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
kite-docs Ready Ready Preview Oct 26, 2026 8:24pm UTC

Request Review

@salevine

Copy link
Copy Markdown
Contributor Author

Closing without merging. We went back to standard Docusaurus colors in #24, so the sky-themed mobile menu no longer applies.

@salevine salevine closed this Oct 27, 2026
@salevine
salevine deleted the docs/mobile-drawer-sky branch October 27, 2026 13:28

This branch was successfully deployed

1 active deployment
Preview — ec525bf9 Deployed Oct 26, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant